Java Anagrams Hackerrank Solved